package channel

import "gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"

const TableNameTenantChannelBank = "tenant_channel_bank"

// TenantChannelBank 商户通道【bank】
type TenantChannelBank struct {
	schema.Model
	Code         string  `gorm:"type:varchar(32);not null;comment:卡号"`
	Phone        string  `gorm:"type:varchar(32);not null;comment:电话"`
	MinAmount    float64 `gorm:"type:decimal(20,4);not null;comment:最小收款金额"`
	MaxAmount    float64 `gorm:"type:decimal(20,4);not null;comment:最大收款金额"`
	DailyTimes   int32   `gorm:"type:int;not null;comment:日总充值次数"`
	DailyAmount  float64 `gorm:"type:decimal(10,4);not null;comment:日总充值金额"`
	RemainTimes  int32   `gorm:"type:int;not null;comment:日总充值剩余次数"`
	RemainAmount float64 `gorm:"type:decimal(20,4);not null;comment:日总充值剩余金额"`
	VisionLevel  string  `gorm:"type:varchar(32);not null;comment:可见等级"`
	IsDisplay    int32   `gorm:"type:tinyint;not null;comment:1:显示"`
	CardNumber   string  `gorm:"type:varchar(32);not null;comment:卡号"`
	BankNickname string  `gorm:"type:varchar(32);not null;comment:银行昵称"`
	BankName     string  `gorm:"type:varchar(32);not null;comment:银行名称"`
	CardHolder   string  `gorm:"type:varchar(20);not null;comment:持卡人"`
	IfscCode     string  `gorm:"type:varchar(32);not null;comment:IFSC code"`
	Email        string  `gorm:"type:varchar(64);not null;comment:邮箱"`
	Province     string  `gorm:"type:varchar(32);not null;comment:省份"`
	City         string  `gorm:"type:varchar(32);not null;comment:市"`
	BranchBank   string  `gorm:"type:varchar(32);not null;comment:银行分部"`
	IsLimit      int32   `gorm:"type:tinyint(10);default:2;not null;comment:日总限额开关,1on,2off"`
	Sort         int32   `gorm:"type:tinyint(10);not null;comment:排序"`
}

func (*TenantChannelBank) TableName() string {
	return TableNameTenantChannelBank
}
